<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-mp_id" class="control-label col-xs-12 col-sm-2">{:__('Mp_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mp_id" data-rule="required" data-source="mp/index" class="form-control selectpage" name="row[mp_id]" type="text" value="{$row.mp_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-card_id" class="control-label col-xs-12 col-sm-2">{:__('Card_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_id" data-rule="required" data-source="card/index" class="form-control selectpage" name="row[card_id]" type="text" value="{$row.card_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-code_type" class="control-label col-xs-12 col-sm-2">{:__('Code_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_type" data-rule="required" class="form-control" name="row[code_type]" type="text" value="{$row.code_type}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-logo_url" class="control-label col-xs-12 col-sm-2">{:__('Logo_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-logo_url" data-rule="required" class="form-control" name="row[logo_url]" type="text" value="{$row.logo_url}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-background_pic_url" class="control-label col-xs-12 col-sm-2">{:__('Background_pic_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-background_pic_url" data-rule="required" class="form-control" name="row[background_pic_url]" type="text" value="{$row.background_pic_url}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-brand_name" class="control-label col-xs-12 col-sm-2">{:__('Brand_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brand_name" data-rule="required" class="form-control" name="row[brand_name]" type="text" value="{$row.brand_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-color" class="control-label col-xs-12 col-sm-2">{:__('Color')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-color" data-rule="required" class="form-control" name="row[color]" type="text" value="{$row.color}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-notice" class="control-label col-xs-12 col-sm-2">{:__('Notice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-notice" data-rule="required" class="form-control" name="row[notice]" type="text" value="{$row.notice}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-service_phone" class="control-label col-xs-12 col-sm-2">{:__('Service_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_phone" data-rule="required" class="form-control" name="row[service_phone]" type="text" value="{$row.service_phone}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" value="{$row.description}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-date_type" class="control-label col-xs-12 col-sm-2">{:__('Date_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-date_type" data-rule="required" class="form-control selectpicker" name="row[date_type]">
                {foreach name="dateTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.date_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-begin_timestamp" class="control-label col-xs-12 col-sm-2">{:__('Begin_timestamp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-begin_timestamp" data-rule="required" class="form-control" name="row[begin_timestamp]" type="number" value="{$row.begin_timestamp}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-end_timestamp" class="control-label col-xs-12 col-sm-2">{:__('End_timestamp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_timestamp" data-rule="required" class="form-control" name="row[end_timestamp]" type="number" value="{$row.end_timestamp}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-fixed_term" class="control-label col-xs-12 col-sm-2">{:__('Fixed_term')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fixed_term" data-rule="required" class="form-control" name="row[fixed_term]" type="number" value="{$row.fixed_term}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-fixed_begin_term" class="control-label col-xs-12 col-sm-2">{:__('Fixed_begin_term')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fixed_begin_term" data-rule="required" class="form-control" name="row[fixed_begin_term]" type="number" value="{$row.fixed_begin_term}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-quantity" class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number" value="{$row.quantity}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-location_id_list" class="control-label col-xs-12 col-sm-2">{:__('Location_id_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location_id_list" data-rule="required" class="form-control" name="row[location_id_list]" type="text" value="{$row.location_id_list}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-get_limit" class="control-label col-xs-12 col-sm-2">{:__('Get_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-get_limit" data-rule="required" class="form-control" name="row[get_limit]" type="number" value="{$row.get_limit}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-use_custom_code" class="control-label col-xs-12 col-sm-2">{:__('Use_custom_code')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-use_custom_code" data-rule="required" class="form-control selectpicker" name="row[use_custom_code]">
                {foreach name="useCustomCodeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.use_custom_code"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-get_custom_code_mode" class="control-label col-xs-12 col-sm-2">{:__('Get_custom_code_mode')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-get_custom_code_mode" data-rule="required" class="form-control selectpicker" name="row[get_custom_code_mode]">
                {foreach name="getCustomCodeModeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.get_custom_code_mode"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-can_give_friend" class="control-label col-xs-12 col-sm-2">{:__('Can_give_friend')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-can_give_friend" data-rule="required" class="form-control selectpicker" name="row[can_give_friend]">
                {foreach name="canGiveFriendList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.can_give_friend"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-custom_url_name" class="control-label col-xs-12 col-sm-2">{:__('Custom_url_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-custom_url_name" data-rule="required" class="form-control" name="row[custom_url_name]" type="text" value="{$row.custom_url_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-custom_url_sub_title" class="control-label col-xs-12 col-sm-2">{:__('Custom_url_sub_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-custom_url_sub_title" data-rule="required" class="form-control" name="row[custom_url_sub_title]" type="text" value="{$row.custom_url_sub_title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-custom_url" class="control-label col-xs-12 col-sm-2">{:__('Custom_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-custom_url" data-rule="required" class="form-control" name="row[custom_url]" type="text" value="{$row.custom_url}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-discount" class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" data-rule="required" class="form-control" step="0.1" name="row[discount]" type="number" value="{$row.discount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-promotion_url_name" class="control-label col-xs-12 col-sm-2">{:__('Promotion_url_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-promotion_url_name" data-rule="required" class="form-control" name="row[promotion_url_name]" type="text" value="{$row.promotion_url_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-promotion_url" class="control-label col-xs-12 col-sm-2">{:__('Promotion_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-promotion_url" data-rule="required" class="form-control" name="row[promotion_url]" type="text" value="{$row.promotion_url}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-need_push_on_view" class="control-label col-xs-12 col-sm-2">{:__('Need_push_on_view')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-need_push_on_view" data-rule="required" class="form-control selectpicker" name="row[need_push_on_view]">
                {foreach name="needPushOnViewList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.need_push_on_view"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{$row.create_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-delete_time" class="control-label col-xs-12 col-sm-2">{:__('Delete_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delete_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delete_time]" type="text" value="{$row.delete_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" data-rule="required" class="form-control" name="row[status]" type="text" value="{$row.status}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
